package br.com.vti.sisp_sicrim.antigo.controller.relatorios;

import java.io.FileNotFoundException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Calendar;

import net.sf.jasperreports.engine.JRException;
import br.com.caelum.vraptor.Result;
import br.com.caelum.vraptor.interceptor.download.InputStreamDownload;
import br.com.vti.sisp_sicrim.antigo.util.Relatorios;
import br.com.vti.sisp_sicrim.antigo.util.Sessao;

/**
 * Classe responsavel por encapsular o tratamento e as consistencias da tela Scrpt001Report
 * 
 * @author Incode - Data: jun/2014
 * 
 */
public class Scrpt001Report {
	private String sdatn;
	private int datini;
	private int datfim;
	private String horaCorrente;
	private int[] mmat = new int[51];
	private int[] mdata = new int[51];
	private int[] mhora = new int[51];
	private String[] mnome = new String[51];
	private long[] mregger = new long[51];
	private int[] mposto = new int[51];
	private int[] mtotal = new int[51];
	private int[] tot0 = new int[2];
	private Result result;
	private Sessao sessao;
	private Relatorios report; // Classes views

	// Classes includes
	public Scrpt001Report() throws JRException, ParseException {
		inicializar();
	}

	public Scrpt001Report(Sessao sessao) throws JRException, ParseException {
		this.sessao = sessao;
		inicializar();
	}

	public void inicializar() throws JRException, ParseException {
		report = new Relatorios();
		datini = 0;
		datfim = 0;
		Arrays.fill(mmat, 0);
		Arrays.fill(mdata, 0);
		Arrays.fill(mhora, 0);
		Arrays.fill(mnome, "");
		Arrays.fill(mregger, 0);
		Arrays.fill(mposto, 0);
		Arrays.fill(mtotal, 0);
		Arrays.fill(tot0, 0);

		report.setNumeroRel(1, "D");
		{
			report.setNumeroLinhaRel(1, 3);
			{
				report.adicionaCampo(2, 7, "lit_2_7", "C", "", "GEJUSPC");
				report.adicionaCampo(11, 52, "lit_11_52", "C", "", "- Gerencia da Justica, Seguranca Publica e Cidadania");
				report.adicionaCampo(72, 8, "lit_72_8", "C", "", "SCRPE003");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(2, 3);
			{
				report.adicionaCampo(2, 4, "lit_2_4", "C", "", "SISP");
				report.adicionaCampo(11, 57, "lit_11_57", "C", "", "- SISTEMA DE INFORMACOES DE SEGURANCA PUBLICA DO MARANHAO");
				report.adicionaCampo(70, 10, "sdatn", "S", "9999/99/99", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(3, 5);
			{
				report.adicionaCampo(2, 37, "lit_2_37", "C", "", "ESTATISTICAS DE EMISSAO DE ATESTADOS:");
				report.adicionaCampo(44, 8, "Datini", "N", "99/99/9999", "");
				report.adicionaCampo(56, 1, "lit_56_1", "C", "", "a");
				report.adicionaCampo(59, 8, "Datfim", "N", "99/99/9999", "");
				report.adicionaCampo(72, 8, "horaCorrente", "S", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(4, 1);
			{
				report.adicionaCampo(2, 78, "lit_2_78", "C", "", "------------------------------------------------------------------------------");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(5, 6);
			{
				report.adicionaCampo(2, 7, "lit_2_7", "C", "", "MATRIC.");
				report.adicionaCampo(11, 4, "lit_11_4", "C", "", "DATA");
				report.adicionaCampo(21, 4, "lit_21_4", "C", "", "HORA");
				report.adicionaCampo(34, 7, "lit_34_7", "C", "", "N O M E");
				report.adicionaCampo(52, 2, "lit_52_2", "C", "", "RG");
				report.adicionaCampo(68, 11, "lit_68_11", "C", "", "POSTO TOTAL");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(6, 5);
			{
				report.adicionaCampo(2, 7, "lit_2_7", "C", "", "-------");
				report.adicionaCampo(11, 8, "lit_11_8", "C", "", "--------");
				report.adicionaCampo(21, 8, "lit_21_8", "C", "", "--------");
				report.adicionaCampo(31, 20, "lit_31_20", "C", "", "--------------------");
				report.adicionaCampo(52, 28, "lit_52_28", "C", "", "--------------- ----- ------");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(7, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[1]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[1]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[1]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[1]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[1]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[1]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[1]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(8, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[2]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[2]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[2]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[2]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[2]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[2]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[2]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(9, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[3]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[3]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[3]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[3]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[3]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[3]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[3]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(10, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[4]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[4]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[4]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[4]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[4]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[4]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[4]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(11, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[5]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[5]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[5]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[5]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[5]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[5]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[5]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(12, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[6]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[6]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[6]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[6]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[6]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[6]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[6]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(13, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[7]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[7]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[7]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[7]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[7]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[7]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[7]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(14, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[8]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[8]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[8]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[8]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[8]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[8]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[8]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(15, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[9]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[9]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[9]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[9]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[9]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[9]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[9]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(16, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[10]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[10]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[10]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[10]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[10]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[10]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[10]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(17, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[11]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[11]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[11]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[11]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[11]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[11]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[11]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(18, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[12]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[12]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[12]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[12]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[12]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[12]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[12]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(19, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[13]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[13]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[13]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[13]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[13]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[13]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[13]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(20, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[14]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[14]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[14]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[14]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[14]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[14]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[14]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(21, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[15]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[15]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[15]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[15]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[15]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[15]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[15]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(22, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[16]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[16]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[16]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[16]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[16]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[16]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[16]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(23, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[17]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[17]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[17]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[17]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[17]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[17]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[17]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(24, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[18]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[18]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[18]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[18]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[18]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[18]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[18]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(25, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[19]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[19]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[19]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[19]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[19]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[19]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[19]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(26, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[20]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[20]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[20]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[20]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[20]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[20]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[20]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(27, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[21]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[21]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[21]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[21]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[21]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[21]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[21]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(28, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[22]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[22]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[22]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[22]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[22]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[22]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[22]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(29, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[23]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[23]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[23]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[23]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[23]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[23]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[23]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(30, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[24]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[24]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[24]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[24]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[24]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[24]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[24]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(31, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[25]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[25]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[25]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[25]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[25]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[25]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[25]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(32, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[26]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[26]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[26]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[26]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[26]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[26]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[26]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(33, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[27]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[27]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[27]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[27]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[27]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[27]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[27]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(34, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[28]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[28]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[28]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[28]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[28]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[28]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[28]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(35, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[29]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[29]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[29]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[29]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[29]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[29]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[29]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(36, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[30]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[30]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[30]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[30]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[30]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[30]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[30]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(37, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[31]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[31]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[31]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[31]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[31]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[31]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[31]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(38, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[32]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[32]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[32]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[32]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[32]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[32]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[32]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(39, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[33]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[33]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[33]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[33]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[33]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[33]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[33]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(40, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[34]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[34]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[34]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[34]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[34]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[34]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[34]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(41, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[35]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[35]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[35]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[35]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[35]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[35]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[35]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(42, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[36]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[36]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[36]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[36]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[36]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[36]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[36]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(43, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[37]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[37]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[37]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[37]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[37]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[37]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[37]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(44, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[38]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[38]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[38]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[38]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[38]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[38]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[38]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(45, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[39]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[39]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[39]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[39]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[39]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[39]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[39]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(46, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[40]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[40]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[40]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[40]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[40]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[40]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[40]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(47, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[41]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[41]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[41]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[41]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[41]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[41]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[41]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(48, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[42]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[42]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[42]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[42]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[42]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[42]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[42]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(49, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[43]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[43]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[43]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[43]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[43]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[43]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[43]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(50, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[44]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[44]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[44]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[44]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[44]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[44]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[44]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(51, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[45]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[45]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[45]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[45]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[45]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[45]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[45]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(52, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[46]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[46]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[46]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[46]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[46]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[46]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[46]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(53, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[47]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[47]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[47]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[47]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[47]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[47]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[47]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(54, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[48]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[48]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[48]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[48]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[48]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[48]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[48]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(55, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[49]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[49]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[49]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[49]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[49]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[49]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[49]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(56, 7);
			{
				report.adicionaCampo(2, 7, "Mmat[50]", "N", "ZZZZZZ9", "");
				report.adicionaCampo(11, 8, "Mdata[50]", "N", "", "");
				report.adicionaCampo(21, 8, "Mhora[50]", "N", "99:99:99", "");
				report.adicionaCampo(31, 20, "Mnome[50]", "X", "XXXXXXXXXXXXXXXXXXXX", "");
				report.adicionaCampo(53, 13, "Mregger[50]", "N", "ZZZZZZZZZZZZ-Z", "");
				report.adicionaCampo(69, 3, "Mposto[50]", "N", "", "");
				report.adicionaCampo(74, 5, "Mtotal[50]", "N", "ZZZZ9", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(57, 1);
			{
				report.adicionaCampo(69, 10, "lit_69_10", "C", "", "----------");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(58, 2);
			{
				report.adicionaCampo(2, 66, "lit_2_66", "C", "", "TOTAIS...........................................................:");
				report.adicionaCampo(69, 8, "Tot0[1]", "N", "ZZ.ZZZ.ZZ9", "");
				report.setFimLinhaRel();
			}
		}
		horaCorrente = new SimpleDateFormat("HH:mm:ss").format(Calendar.getInstance().getTime()); // *TIMX
		sdatn = new SimpleDateFormat("yyyyMMdd").format(Calendar.getInstance().getTime()); // *DATN
		setSdatn(sdatn);
		setHoraCorrente(horaCorrente);
	}

	public boolean validar() {
		// validar os campos recebidos da tela
		return true;
	}

	public int getDatini() {
		return datini;
	}

	public void setDatini(int datini) throws ParseException {
		this.datini = datini;
		report.adicionaValorReport("Datini", datini);
	}

	public int getDatfim() {
		return datfim;
	}

	public void setDatfim(int datfim) throws ParseException {
		this.datfim = datfim;
		report.adicionaValorReport("Datfim", datfim);
	}

	public int[] getMmat() {
		return mmat;
	}

	public void setMmat(int[] mmat) throws ParseException {
		this.mmat = mmat;
		report.adicionaValorReport("Mmat", mmat);
	}

	public int[] getMdata() {
		return mdata;
	}

	public void setMdata(int[] mdata) throws ParseException {
		this.mdata = mdata;
		report.adicionaValorReport("Mdata", mdata);
	}

	public int[] getMhora() {
		return mhora;
	}

	public void setMhora(int[] mhora) throws ParseException {
		this.mhora = mhora;
		report.adicionaValorReport("Mhora", mhora);
	}

	public String[] getMnome() {
		return mnome;
	}

	public void setMnome(String[] mnome) throws ParseException {
		this.mnome = mnome;
		report.adicionaValorReport("Mnome", mnome);
	}

	public long[] getMregger() {
		return mregger;
	}

	public void setMregger(long[] mregger) throws ParseException {
		this.mregger = mregger;
		report.adicionaValorReport("Mregger", mregger);
	}

	public int[] getMposto() {
		return mposto;
	}

	public void setMposto(int[] mposto) throws ParseException {
		this.mposto = mposto;
		report.adicionaValorReport("Mposto", mposto);
	}

	public int[] getMtotal() {
		return mtotal;
	}

	public void setMtotal(int[] mtotal) throws ParseException {
		this.mtotal = mtotal;
		report.adicionaValorReport("Mtotal", mtotal);
	}

	public int[] getTot0() {
		return tot0;
	}

	public void setTot0(int[] tot0) throws ParseException {
		this.tot0 = tot0;
		report.adicionaValorReport("Tot0", tot0);
	}

	public int getMmat(int index) {
		return mmat[index];
	}

	public void setMmat(int index, int mmat) throws ParseException {
		this.mmat[index] = mmat;
		report.adicionaValorReport("Mmat[" + String.valueOf(index) + "]", mmat);
	}

	public int getMdata(int index) {
		return mdata[index];
	}

	public void setMdata(int index, int mdata) throws ParseException {
		this.mdata[index] = mdata;
		report.adicionaValorReport("Mdata[" + String.valueOf(index) + "]", mdata);
	}

	public int getMhora(int index) {
		return mhora[index];
	}

	public void setMhora(int index, int mhora) throws ParseException {
		this.mhora[index] = mhora;
		report.adicionaValorReport("Mhora[" + String.valueOf(index) + "]", mhora);
	}

	public String getMnome(int index) {
		return mnome[index];
	}

	public void setMnome(int index, String mnome) throws ParseException {
		this.mnome[index] = mnome;
		report.adicionaValorReport("Mnome[" + String.valueOf(index) + "]", mnome);
	}

	public long getMregger(int index) {
		return mregger[index];
	}

	public void setMregger(int index, long mregger) throws ParseException {
		this.mregger[index] = mregger;
		report.adicionaValorReport("Mregger[" + String.valueOf(index) + "]", mregger);
	}

	public int getMposto(int index) {
		return mposto[index];
	}

	public void setMposto(int index, int mposto) throws ParseException {
		this.mposto[index] = mposto;
		report.adicionaValorReport("Mposto[" + String.valueOf(index) + "]", mposto);
	}

	public int getMtotal(int index) {
		return mtotal[index];
	}

	public void setMtotal(int index, int mtotal) throws ParseException {
		this.mtotal[index] = mtotal;
		report.adicionaValorReport("Mtotal[" + String.valueOf(index) + "]", mtotal);
	}

	public int getTot0(int index) {
		return tot0[index];
	}

	public void setTot0(int index, int tot0) throws ParseException {
		this.tot0[index] = tot0;
		report.adicionaValorReport("Tot0[" + String.valueOf(index) + "]", tot0);
	}

	public String getSdatn() {
		return sdatn;
	}

	public void setSdatn(String sdatn) throws ParseException {
		this.sdatn = sdatn;
		report.adicionaValorReport("Sdatn", sdatn);
	}

	public String getHoraCorrente() {
		return horaCorrente;
	}

	public void setHoraCorrente(String horaCorrente) throws ParseException {
		this.horaCorrente = horaCorrente;
		report.adicionaValorReport("horaCorrente", horaCorrente);
	}

	public void setPageSize(int pagesize) throws JRException {
		report.setPageSize(pagesize);
	}

	public void setLineSize(int linesize) {
		report.setLineSize(linesize);
	}

	public int getPageSize() {
		return report.getPageSize();
	}

	public int getPageLine() {
		return report.getPageLine();
	}

	public void saltaLinhas(int qtdLinhas) throws ParseException, JRException {
		report.saltaLinhas(qtdLinhas);
	}

	public void gravaRelatorio(int nroRel) throws ParseException, JRException {
		report.gravaRelatorio(report, nroRel, false);
	}

	public InputStreamDownload imprimir() throws FileNotFoundException, JRException {
		return report.imprimir();
	}
}
